package exception;


public class ExceptionApiDemo
{
    public static void main(String[] args)
    {
        // ctrl alt t  快捷键 try catch
        System.out.println("begin");
        try
        {
            String str = "abc";
            System.out.println(Integer.parseInt(str));
        } catch (NumberFormatException e)
        {
            e.printStackTrace();
            System.out.println(e.getMessage());
        }
        System.out.println("end");
    }
}
